package job;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import presentation.Printer;

public class CalcRunner {

	/**
	 * @param args
	 */

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");

		CalculatorJob myJob = context.getBean("mainJob", CalculatorJob.class);
		String startTime = Printer.printNow();
		myJob.run();
		Printer.println(startTime);
		Printer.printNow();

	}

}
